home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mgr / sparcmgr / doc.zoo / doc / usrman / croff / hash.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-01-24  |  1.2 KB  |  42 lines

  1. /*                        Copyright (c) 1988 Bellcore
  2.  *                            All Rights Reserved
  3.  *       Permission is granted to copy or use this program, EXCEPT that it
  4.  *       may not be sold for profit, the copyright notice must be reproduced
  5.  *       on copies, and credit should be given to Bellcore where it is due.
  6.  *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  7.  */
  8. /*    $Header: hash.h,v 1.1 88/07/07 10:12:10 sau Exp $
  9.     $Source: /tmp/mgrsrc/doc/usrman/croff/RCS/hash.h,v $
  10. */
  11. static char    h_hash_[] = "$Source: /tmp/mgrsrc/doc/usrman/croff/RCS/hash.h,v $$Revision: 1.1 $";
  12.  
  13. /* hash table item */
  14.  
  15. struct table_entry {
  16.     char *name;        /* item name */
  17.     char *value;        /* current value */
  18.     int  count;        /* # of references to this entry */
  19.     int  flags;        /* entry flags */
  20.     struct table_entry
  21.          *next;        /* address of next table entry */
  22.     };
  23.  
  24. struct table_data {
  25.     char *name;        /* item name */
  26.     char *value;        /* current value */
  27.     int  count;        /* # of references to this entry */
  28.     };
  29.  
  30. typedef struct table_entry  TABLE;
  31.  
  32. #define HASH_STATIC        0x001    /* static entry */
  33.  
  34. #ifndef Same
  35. #   define Same(x,y)        (strcmp(x,y) ? 0 : 1)
  36. #else
  37.     extern int Same();
  38. #endif
  39. #ifndef HASH
  40. #   define HASH    hash            /* name of hash routine */
  41. #endif
  42.